package com.aat.dizena.chat.service.impl;

import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aat.dizena.chat.bean.Group;
import com.aat.dizena.chat.dao.GroupDao;
import com.aat.dizena.chat.service.GroupService;

@Service
public class GroupServiceImpl  implements GroupService {

    @Autowired
    private GroupDao groupDao;

    public int addBean(Group bean){
        return groupDao.addBean(bean);
    }

    public int updateBean(Group bean){
        return groupDao.updateBean(bean);
    }

    public int deleteBean(String id){
        return groupDao.deleteBean(id);
    }

    public Group queryBean(String id){
        return groupDao.queryBean(id);
    }

    public List<Group> queryAll(Map<String, Object> map){
        return groupDao.queryAll(map);
    }

    public long queryCount(Map<String, Object> map){
        return groupDao.queryCount(map);
    }

}
